package gae.db;
import gae.db.*;
import java.sql.*;

public class Dbtest {

	private Connection conn;
	private PreparedStatement ps;
	private ResultSet rs;
	public int Test(){
		try{
			conn=gae.db.Dbcon.getCon();
			String sql="insert into test values(?,?,?)";
			ps=conn.prepareStatement(sql);
			ps.setString(1, "id");
			ps.setString(2, "pwd");
			ps.setString(3, "name");
		int result=ps.executeUpdate();
		return result;
		}catch(Exception e){
			return -1;
		}finally{
			try{
				
			}catch(Exception e2){}
		}
		
	}
	
	
}
